package com.link.common.packet;

import java.util.Arrays;

public enum RequestOperate {
    LOGIN(1),
    LOGOUT(3),
    REGISTER(5),//注册

    SEND_VERIFICATION_CODE(7), //发送验证码
    REAL_NAME_AUTHENTICATION(9),
    LOAD_REGION(11),
    LOAD_CHANNEL(13),
    CHANNEL_LOGIN(15),
    ;
    public final int code;
    RequestOperate(int code){
          this.code=code;
      }


    public static RequestOperate of(int code) {
      return   Arrays.stream(values()).filter(it->it.code==code).findFirst().orElse(null);

    }
}
